package com.ybwh.springboot1.model.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import lombok.Data;

/**
*
*/
@Data
@Entity 
@Table(name = "t_order", uniqueConstraints = { @UniqueConstraint(columnNames = { "order_id" }) })
public class Order {

	/**
	*主键
	*/
	@Id
	@SequenceGenerator(name = "t_order")
	@Column(name = "order_id")
	private Long orderId;
	
	/**
	*用户ID
	*/
	@Column(name = "user_id")
	private Long userId;
	
	/**
	*下单时间
	*/
	@Column(name = "order_time")
	private Date orderTime;

	

	
}